package com.hejx.security.common.enums;

/**
 * @author hejx
 * @email doubihah@foxmail.com
 * @create 2017-05-31 9:08
 **/
public enum ResultEnum {

    UNKNOW_ERROR(-1, "未知错误"),
    PARAM_ERROR(-2, "参数错误"),
    SIGNVERIFIED_ERROR(-3,"验签失败"),
    SUCCESS(0, "成功"),
    INSUFFICIENT_AUTHORITY(403,"权限不足"),

    PHONE_ERROR(1003,"手机号码格式错误"),
    EMAIL_ERROR(1004,"邮箱格式错误"),
    EXPORT_EXCEL_ERROR(1005,"导出EXCEL文件失败"),
    IDENTIFYCODE_ERROR(1008,"短信验证码错误"),
    PLAYER_ID_ERROR(1009,"玩家ID格式异常"),
    SMS_REPEAT_SEND_ERROR(1010,"短信验证码发送失败:发送间隔时间未到"),
    SMS_SEND_ERROR(1011,"短信发送失败"),
    IDENTIFYCODE_TIME_OUT(1012,"短信验证码已过期,请重新获取"),
    USER_REPEAT_ERROR(1013,"用户已存在"),


    ;

    private Integer code;
    private String msg;

    ResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

}
